import request from '@/utils/request'
const apiUrl = '/api/gongzuobxhpb'

export function getPageApi(params) {
    return request({
        url: `${apiUrl}/getPage`,
        method: 'get',
        params
    })
}

export function getInfoApi(id) {
    return request({
        url: `${apiUrl}/getInfo/${id}`,
        method: 'get'
    })
}


export function batchSaveOrUpdateApi(data) {
    return request({
        url: `${apiUrl}/batchSaveOrUpdate`,
        method: 'post',
        data
    })
}

export function saveOrUpdateApi(data) {
    return request({
        url: `${apiUrl}/saveOrUpdate`,
        method: 'post',
        data
    })
}

export function removeApi(id) {
    return request({
        url: `${apiUrl}/remove/${id}`,
        method: 'delete'
    })
}


export function batchRemove(id) {
    return request({
        url: `${apiUrl}/batchRemove/${id}`,
        method: 'post'
    })
} 